//
//  MIDIfoundCell.m
//  迷笛
//
//  Created by . on 2018/12/3.
//  Copyright © 2018年 🍃🌺🌺🍃. All rights reserved.
//

#import "MIDIfoundCell.h"

@implementation MIDIfoundCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self addSubview:self.chooseImage];
        [self.chooseImage mas_makeConstraints:^(MASConstraintMaker *make)
        {
            make.centerY.equalTo(self);
            make.right.mas_offset(WidthScale(-20));
            make.width.mas_offset(WidthScale(40));
            make.height.mas_offset(HeightScale(40));
        }];
    }
    return self;
}
-(UIImageView *)chooseImage
{
    if (!_chooseImage)
    {
        _chooseImage =[[UIImageView alloc]init];
    }
    return _chooseImage;
}

@end
